package com.example.webapp.dao;

import com.example.webapp.bean.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface UserDao extends JpaRepository<User, Integer> {
    User findByUsername(String uname);
    User findByUsernameAndPassword(String uname, String password);
}
